import request from '@/utils/request'

export function create(data) {
  return request({
    url: '/role/insert',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/role/update',
    method: 'post',
    data
  })
}
export function del(params) {
  return request({
    url: '/role/delete',
    method: 'get',
    params: params
  })
}
export function find(params) {
  return request({
    url: '/role/find',
    method: 'get',
    params
  })
}
